// packageD/quickPay/quickComm/bankingPop/bankingPop.js
const skinBehavior = require('../../../../utils/themeSkin/skinBehavior');
let app = getApp();
Component({

  /**
   * 组件的属性列表
   */
  behaviors: [skinBehavior],
  options: {
    addGlobalClass: true,
  },
  properties: {
    cardList:{
      type:Array,
      value:[]
    },
    bankShow:{
      type:Boolean,
      value:false
    },
    bankIndex:{
      type:Number,
      value:0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    imgPath: app.globalData.imgPath,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    downTagPop() {
      this.setData({
        bankShow:false
      })
    },
    bankClick(event) {
     
      let {item,index} = event.currentTarget.dataset;
      console.log(item,index);
      this.triggerEvent('bankClick',{item:item,index:index})
    },
  }
})